package bean;

import java.io.Serializable;
import java.util.Date;
//学生类的封装
public class Student implements Serializable {
    private static final long serialVersionUID = -7421583755018957680L;
    private int id;       //学号
    private String name;  //姓名
    private String sex;   //性别
    private String birthday;//出身日期
    private String email; //邮箱
    private String comments;//备注
    private String sName ;   //所属班级编号

    public Student() {
    }

    public Student(int id, String name, String sex, String birthday, String email, String comments, String sName) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.sName = sName;
    }

    public Student(String name, String sex, String birthday, String email, String comments, String sName) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.sName = sName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                ", comments='" + comments + '\'' +
                '}';
    }
}
